package com.etc.service.impl;

import com.etc.dao.VegeMapper;
import com.etc.pojo.vege.Veget;
import com.etc.service.VegetServier;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class VegeServiceImpl implements VegetServier {
    @Autowired
    private VegeMapper vegeMapper;

    @Override
    public List<Veget> findByAll() {
        return vegeMapper.findByAll();
    }

    @Override
    public Integer deleteById(int vid) {
        return vegeMapper.deleteById(vid);
    }

    @Override
    public Integer insertById(Veget veget) {
        return vegeMapper.insertById(veget);
    }
}
